<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<script type="text/javascript">
		arr = [456,45,645,6,456,657,45,76,456,54];
		function delArr(tempArr) {
			for(var x in tempArr){
			}
			data = [];
			for (var i in tempArr) {
				if(i==x){
					return data;
				}else{
					data[i]	 = tempArr[i];
				}
			}
		}
		res = delArr(arr);
		document.write(res);
		// 
		function addArr(tempArr,last) {
			for(var x in tempArr){
			}
			// document.write(x+1);
			tempArr[Number(x)+1] = last;
			return tempArr;
		}

		res = addArr(arr,100);

		document.write(res);







	</script>
</head>
<body>
	
</body>
</html>